package edu.sctu.practice.class02.yangyuran.test26;

/**
 * Created by Administrator on 2015/10/20.
 */
public class Employee extends Role {
    public int salary;
    public static String ID;

    public void setSalary(int sala) {
        this.salary = sala;
    }

    public int getSalary() {
        return salary;
    }

    public void setID(String id) {
        this.ID = id;
    }

    public String getID() {
        return ID;
    }

    public Employee(String nam) {
        super(nam);
    }

    public Employee(String nam, int ag, String gend, int sala, String id) {
        super(nam, ag, gend);
        this.setSalary(sala);
        this.setID(id);
    }

    @Override
    public void play() {
        System.out.println("职工信息：" + "\n姓名：" + getName() + "\n年龄：" + getAge() + "\n性别：" + getGender() + "\n薪水：" + getSalary() + "元\n编号：" + getID());
    }

    public final void sing() {
        System.out.println("\nfinal sing() 方法*******");
    }
}
